package cn.itrip.auth.service;

import cn.itrip.pojo.ItripUser;
import cn.itrip.vo.TokenVO;

public interface TokenService {
    //生成token
    public TokenVO genToken(String userAgent, ItripUser user)throws Exception;
    //删除token
    public Boolean deleteToken(String token)throws Exception;
    //判断token是否存在
    public Boolean exit(String token)throws Exception;
    //得到token剩余时间
    public long getTll(String token)throws Exception;
    //获取token中的值
    public String getValue(String token)throws Exception;
    //给token续命
    public boolean expire(String key)throws Exception;
}
